home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
1833
/
1833.xpi
/
chrome
/
yoono.jar
/
content
/
yoono
/
dialogs
/
synchroask.js
< prev
next >
Wrap
Text File
|
2009-12-16
|
1KB
|
37 lines
var strbundle=document.getElementById("yoono-synchroask-strings");
var selectedAction;
function init() {
var defaultAction = YOONO_PREFS.get("synchroaction");
// selectionne le bouton radio correspondant aux preferences
document.getElementById("yoono-synchroask-" + defaultAction + "-radio").setAttribute('selected', true);
// affiche le texte d avertissement
selectItem();
// check if other known synchronizers
if(YOONO_CMPT.checkIncompatibility(YOONO_CMPT.bkmSyncIncompatibleExtensions)) {
var w = document.getElementById('yoono-othersync-warning');
w.removeAttribute('collapsed');
}
centerWindow();
}
function selectItem() {
selectedAction = document.getElementById("yoono-synchroask-radiogroup").selectedItem.value;
document.getElementById("yoono-synchroask-actionwarning").firstChild.data = strbundle.getString("synchro." + selectedAction + ".warning");
sizeToContent();
}
function validatePrefs () {
selectedAction = document.getElementById("yoono-synchroask-radiogroup").selectedItem.value;
YNPREFBRANCH.setCharPref("synchroaction" , selectedAction);
if(selectedAction == "nosynchro") {
// persistant pref setting
YNPREFBRANCH.setBoolPref("nosynchro" , true);
} else {
YNPREFBRANCH.setBoolPref("nosynchro" , false);
}
}